<?php

/**
 * Description of users
 *
 * @author adrian
 */
class Controller_Template extends Controller {

    /**
     * Główna szatka strony
     * @var View
     */
    public $template = 'widok';
 
    
    public function __construct() {
        parent::__construct();
        $this->template = View::factory($this->template);
        Event::add('postcontroller', array($this, '_render'));
    }

    public function _render() {
        $this->template->render();
    }

}
?>
